getQueryHint

@Nullable
open fun getQueryHint(): @Nullable CharSequence(source)

Returns the hint text that will be displayed in the query text field.

The displayed query hint is chosen in the following order:

  1. Non-null value set with setQueryHint
  2. Value specified in XML using app:queryHint
  3. Valid string resource ID exposed by the SearchableInfo via getHintId
  4. Default hint provided by the theme against which the view was inflated

Return

the displayed query hint text, or null if none set queryHint